#!/usr/bin/env python
# encoding: utf-8
"""
@author: youfeng
@email: youfeng243@163.com
@license: Apache Licence 
@file: parse_anhui.py
@time: 2016/12/22 15:07
"""
from parse.base_object import ParseObject


class prase_object_heilongjiang(ParseObject):
    def __init__(self, **kwargs):
        ParseObject.__init__(self, **kwargs)

    def get_base_info(self, url, item=None):
        i_d = url.split('?')[1].split('=')[1]
        if i_d is None or i_d == '':
            self.log.error('url 解析错误: {url}'.format(url=url))
            return None
        return {'id': i_d}
